package com.example.tiptravel.model;

import com.example.tiptravel.model.impl.HomeModelImpl;
import com.example.tiptravel.model.impl.PostModelImpl;

/**
 * Created by 45820 on 2016/11/5.
 */

public class ModelFactory {

    private static IHomeModel iHomeModel;

    public static IHomeModel getiHomeModel(){
        if (iHomeModel==null){
            iHomeModel = new HomeModelImpl();
        }
     return iHomeModel;
    }

    private static IPostModel iPostModel;
    public static IPostModel getiPostModel(){
        if (iPostModel==null){
            iPostModel=new PostModelImpl();
        }
        return iPostModel;
    }
}
